public class Page_96_4 {
    public static void main(String[] args) {
        int arr[] = {1,2,3,4,5};
        int i = 0;
        for(i = 0;i<(arr.length/2);i++)
        {
            int tmp = arr[i];
            arr[i] = arr[arr.length-i-1];
            arr[arr.length-i-1] =tmp;
        }
        for(i = 0;i<arr.length;i++)
        {
            System.out.println(arr[i]);
        }
    }


}
